Nordic Semiconductor /nrf51 /GPIO /PIN_CNF[8]

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as PIN_CNF[8]

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (Input)DIR 0 (Connect)INPUT 0 (Disabled)PULL 0 (S0S1)DRIVE0 (Disabled)SENSE

DIR=Input, DRIVE=S0S1, PULL=Disabled, INPUT=Connect, SENSE=Disabled

Description

Configuration of GPIO pins.

Fields

DIR

Pin direction.

0 (Input): Configure pin as an input pin.

1 (Output): Configure pin as an output pin.

INPUT

Connect or disconnect input path.

0 (Connect): Connect input pin.

1 (Disconnect): Disconnect input pin.

PULL

Pull-up or -down configuration.

0 (Disabled): No pull.

1 (Pulldown): Pulldown on pin.

3 (Pullup): Pullup on pin.

DRIVE

Drive configuration.

0 (S0S1): Standard ‘0’, Standard ‘1’.

1 (H0S1): High ‘0’, Standard ‘1’.

2 (S0H1): Standard ‘0’, High ‘1’.

3 (H0H1): High ‘0’, High ‘1’.

4 (D0S1): Disconnected ‘0’, Standard ‘1’.

5 (D0H1): Disconnected ‘0’, High ‘1’.

6 (S0D1): Standard ‘0’, Disconnected ‘1’.

7 (H0D1): High ‘0’, Disconnected ‘1’.

SENSE

Pin sensing mechanism.

0 (Disabled): Disabled.

2 (High): Wakeup on high level.

3 (Low): Wakeup on low level.

Links

() ()